package com.alibaba.yinan.domain.task.service.strategy;

import com.alibaba.yinan.domain.task.Task;
import com.alibaba.yinan.domain.task.enums.TaskType;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * @ClassName AgvTaskStrategy
 * @Author mengke
 * @create 2025/8/3 22:09
 * @Description
 */
@Slf4j
@Component
public class AgvTaskStrategy implements TaskTypeStrategy {
    @Override
    public boolean support(TaskType type) {
        return type == TaskType.AGV;
    }

    @Override
    public void customizeBehavior(Task task) {
        log.info("开始定制化AGV任务行为，任务ID：{}", task.getId());
    }
}
